package ar.org.cfired.creditos.db;

import org.hibernate.tool.hbm2ddl.*;
import org.hibernate.cfg.Configuration;
public class Esquema {
	Esquema() {
		
	}
	
	public static void main (String args[]) {
		System.out.println("Hola!");
		Configuration conf = new Configuration();

		
		conf.setProperty("hibernate.connection.driver_class", "net.sourceforge.jtds.jdbc.Driver");
	  	conf.setProperty("hibernate.connection.url", "jdbc:jtds:sqlserver://192.168.160.29;instance=sqlexpress;databaseName=DprocessCreditos;SelectMethod=cursor");
  		conf.setProperty("hibernate.connection.username", "roger");
  		conf.setProperty("hibernate.connection.password", "dprog6Fs");
  		conf.setProperty("hibernate.dialect", "org.hibernate.dialect.SQLServerDialect");
  		
		
		SchemaExport esq = new SchemaExport(conf);
		
		esq.setOutputFile("c:\\outputSchema.txt");
		esq.setImportFile("c:\\import.txt");
		esq.create(true, true);
		
	}

}
